import React, { Component } from 'react';
import './Ficalist.css'
class Ficalist extends Component {
    
    constructor(props) {
        super(props)
    
        this.state = {

        }
    }

    render() {
        // 接受父组件传过来的数据
        console.log(this.props.singer);
        // var arr = this.props.arr;
        // console.log(arr)
        return (
            <div className="siger">
                {
                    this.props.singer.map((item,index)=>
                        <div className="singer-list" key={index}>
                            <img src={item.picUrl}/>
                            <span>{item.name}</span>
                        </div>
                )
                }
            </div>
        );
    }
}

export default Ficalist;